package cn.nawang.ebeim.api.bean;

import java.util.List;

import cn.nawang.ebeim.api.domain.Ca;
import cn.nawang.ebeim.api.utils.DateUtils;

/**
 * @ClassName: CustomerBean
 * @Description: TODO
 * @author fanyb
 * @date Nov 16, 2015 10:28:37 AM
 * @version v1.0
 */
public class CustomerBean {
  private String companyName;
  private int maxCopys;
  private String salesPackageName;
  private String username;
  private String name;
  private String mobile;
  private String email;
  private Long createTime;
  private String createTimeStr;
  
  private List<Ca> list;
  
  public CustomerBean(String companyName, int maxCopys, String salesPackageName, String username,
      String name, String mobile, String email, Long createTime) {
    super();
    this.companyName = companyName;
    this.maxCopys = maxCopys;
    this.salesPackageName = salesPackageName;
    this.username = username;
    this.name = name;
    this.mobile = mobile;
    this.email = email;
    this.createTime= createTime;
  }
  
  public String getCompanyName() {
    return companyName;
  }
  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }
  public int getMaxCopys() {
    return maxCopys;
  }
  public void setMaxCopys(int maxCopys) {
    this.maxCopys = maxCopys;
  }
  public String getSalesPackageName() {
    return salesPackageName;
  }
  public void setSalesPackageName(String salesPackageName) {
    this.salesPackageName = salesPackageName;
  }
  public String getUsername() {
    return username;
  }
  public void setUsername(String username) {
    this.username = username;
  }
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public String getMobile() {
    return mobile;
  }
  public void setMobile(String mobile) {
    this.mobile = mobile;
  }
  public String getEmail() {
    return email;
  }
  public void setEmail(String email) {
    this.email = email;
  }
  
  public Long getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Long createTime) {
    this.createTime = createTime;
  }
  
  public String getCreateTimeStr() {
    if(this.getCreateTime()==null){
      return "";
    }
    return DateUtils.longTime2String(this.getCreateTime());
  }

  public void setCreateTimeStr(String createTimeStr) {
    this.createTimeStr = createTimeStr;
  }

  public List<Ca> getList() {
    return list;
  }

  public void setList(List<Ca> list) {
    this.list = list;
  }

  @Override
  public String toString() {
    return "CustomerBean [companyName=" + companyName + ", maxCopys=" + maxCopys
        + ", salesPackageName=" + salesPackageName + ", username=" + username + ", name=" + name
        + ", mobile=" + mobile + ", email=" + email + ", createTime=" + createTime
        + ", createTimeStr=" + createTimeStr + ", list=" + list + "]";
  }
  
}
